package com.example.login.api

import com.example.net.HttpInterceptorType
import com.example.net.HttpManager
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
object LoginApiModel {

    @Provides
    @Singleton
    fun getLoginApiService():LoginApiServer{
        return HttpManager.createApiService(LoginApiServer::class.java,HttpInterceptorType.SIGN)
    }
}